Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
"Cannot read properties of undefined (reading 'get')" ftp nodeJS

I am struggling with this error since yesterday : Cannot read properties of undefined (reading 'get').

I am using ftp NodeJS module. I have instanciated an c attribute in my class like this :

constructor(){
        this.fileFromFTP = '';
        this.fileFromShop = '';
        this.items = [];
        this.c = new Client();
    }

The error comes from this method, on the second line (this.c.get) :

refreshStore(){
      this.c.on('ready', function() {
        this.c.get('GCEvo/Product_mdl.csv', function(err, stream) {  
          if (err) throw err;

When I hover the this.c.get, I don't get a reference to my c attribute. How can I solve this ?

Thank you!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!